/*
 * @Author: zi.yang
 * @Date: 2021-09-29 00:13:21
 * @LastEditors: zi.yang
 * @LastEditTime: 2021-10-03 18:34:34
 * @Description: In User Settings Edit
 * @FilePath: \ziYangPM\src\main.js
 */
import '@babel/polyfill'
import Vue from 'vue'
import 'mutationobserver-shim'
import './Utils/filter'
import App from './App.vue'
import router from './router'

import store from './store'
import Raphael from 'raphael/raphael'
import './plugins'
import './registerServiceWorker'
import AlgoliaComponents from 'vue-instantsearch'
import i18n from './i18n'
import './directives'
import PmMessage from '@/components/PmPopup/PmMessage'
import '@/router/permission'
import globalUtils from '@/Utils/global'

global.Raphael = Raphael

Vue.use(globalUtils)
Vue.use(AlgoliaComponents)

Vue.config.productionTip = false
Vue.prototype.$message = new PmMessage()

const vm = new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')

window.vm = vm
